Documentation

User
in package
implements UserInterface, PasswordAuthenticatedUserInterface

Table of Contents

Interfaces

UserInterface
PasswordAuthenticatedUserInterface

Properties

$email  : string|null
$id  : int|null
$password  : string
$roles  : array<string|int, mixed>
$tasks  : Collection
$username  : string|null

Methods

__construct()  : mixed
addTask()  : self
eraseCredentials()  : void
getEmail()  : string|null
getId()  : int|null
getPassword()  : string
getRoles()  : array<string|int, string>
getTasks()  : Collection<int, Task>
getUserIdentifier()  : string
A visual identifier that represents this user.
getUsername()  : string|null
removeTask()  : self
setEmail()  : self
setPassword()  : self
setRoles()  : self
setUsername()  : self

Properties

$email

private string|null $email = null

$id

private int|null $id = null

$password

private string $password = null

The hashed password

$roles

private array<string|int, mixed> $roles = []

$tasks

private Collection $tasks

$username

private string|null $username = null

Methods

__construct()

public __construct() : mixed

addTask()

public addTask(Task $task) : self
Parameters
$task : Task
Return values
self

eraseCredentials()

public eraseCredentials() : void
Tags
see
UserInterface

getEmail()

public getEmail() : string|null
Return values
string|null

getId()

public getId() : int|null
Return values
int|null

getPassword()

public getPassword() : string
Tags
see
PasswordAuthenticatedUserInterface
Return values
string

getRoles()

public getRoles() : array<string|int, string>
Tags
see
UserInterface
Return values
array<string|int, string>

getTasks()

public getTasks() : Collection<int, Task>
Return values
Collection<int, Task>

getUserIdentifier()

A visual identifier that represents this user.

public getUserIdentifier() : string
Tags
see
UserInterface
Return values
string

getUsername()

public getUsername() : string|null
Return values
string|null

removeTask()

public removeTask(Task $task) : self
Parameters
$task : Task
Return values
self

setEmail()

public setEmail(string $email) : self
Parameters
$email : string
Return values
self

setPassword()

public setPassword(string $password) : self
Parameters
$password : string
Return values
self

setRoles()

public setRoles(array<string|int, string> $roles) : self
Parameters
$roles : array<string|int, string>
Return values
self

setUsername()

public setUsername(string $username) : self
Parameters
$username : string
Return values
self

        
On this page

Search results